package collection;

import java.util.LinkedList;
import java.util.Queue;
import java.util.Stack;

public class TestStack {
	public static void main(String[] args) {
		Stack<String> stack=new Stack<String>();
		stack.push("asd");
		stack.push("dsa");
		stack.pop();
		
		Queue<String> queue = new LinkedList<String>();
		queue.add("abc");
		queue.add("xyz");
		queue.peek(); //取出不删
		queue.poll();//取出即删除
		
		
		
	}
}
